#!/bin/bash
#唯一上传脚本，仅在本目录执行
if [ "$1" != "" ]; then
	p=""
else
	p="--list-only"
fi
srv="115.29.167.22"
port=22
dir=""
rsync -iazCPe "ssh -p22" $p \
			--exclude "test.html" \
			--exclude ".svn/" \
			--include "zfb/*" --include "zfb/" \
			--exclude "configue.php" \
			--exclude "*.gz" \
			--exclude "*.rar" \
			--exclude "*.zip" \
			--exclude "*.db" \
			--exclude "cache/*" \
			--exclude "psd/" \
			--exclude "templates_c/*" \
			--exclude "log/*" \
            --exclude "www.1date1cake.com/" \
            --exclude "1date1cake/" \
            --exclude "bk/" \
			--exclude "data/" \
			--include "*/*" \
			--include "include/" \
			--include "log/" --include "server.php" --include "smarty-3.1.13/" --include "PHPExcel" \
			--include "*root/" \
			--include "*_server/" \
			--exclude "**" \
			../$dir xampp@$srv:/opt/lampp/htdocs/our_web/$dir
